/****** Object:  Table [dbo].[Forum_Sessions]    Script Date: 10/21/2011 17:00:06 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[Forum_Sessions](
	[LoginToken] [uniqueidentifier] NOT NULL,
	[ExpirationDate] [datetime] NOT NULL,
	[UserID] [int] NOT NULL,
 CONSTRAINT [PK_Forum_Sessions] PRIMARY KEY CLUSTERED 
(
	[LoginToken] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

ALTER TABLE [dbo].[Forum_Sessions]  WITH CHECK ADD  CONSTRAINT [FK_Forum_Sessions_Forum_Users] FOREIGN KEY([UserID])
REFERENCES [dbo].[Forum_Users] ([userid])
GO

ALTER TABLE [dbo].[Forum_Sessions] CHECK CONSTRAINT [FK_Forum_Sessions_Forum_Users]
GO


